package com.xiyu.service.vo.material.order.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import jakarta.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 物资盘点明细 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MaterialInventoryDetailBase {

    @Schema(description = "物资盘点单ID")
    private Long inventoryId;

    @Schema(description = "物资信息ID")
    private Long materialId;

    @Schema(description = "批次号")
    @Size(max = 50, message = "批次号长度不能超过50")
    private String batchNo;

    @Schema(description = "生产日期")
    @Size(max = 50, message = "生产日期长度不能超过50")
    private String productionDate;

    @Schema(description = "有效期")
    @Size(max = 50, message = "有效期长度不能超过50")
    private String expireDate;

    @Schema(description = "当前库存")
    @DecimalMax(value = "10000000000", message = "当前库存最大不能超过10000000000")
    private BigDecimal currentStockNumber;

    @Schema(description = "实盘库存")
    @DecimalMax(value = "10000000000", message = "实盘库存最大不能超过10000000000")
    private BigDecimal inventoryStockNum;

}
